package com.greenline.push.service.core.his;

import javax.annotation.Resource;

import com.greenline.push.core.pushcenter.MsgHisManager;
import com.greenline.push.dal.pushcenter.dataobject.MsgHisDO;
/**
 * 
 * @Type HisRecorder
 * @Desc 
 * @author shuai.zuo
 * @date 2014年10月11日
 * @Version V1.0
 */
public class DefaultHisRecorder implements IHisRecorder {
    @Resource
    private MsgHisManager msgHisManager;

    @Override
    public boolean saveRecord(MsgHisDO msgHisDO) {
        Long returnId = msgHisManager.insert(msgHisDO);
        return returnId > 0;
    }
    
    @Override
    public boolean updateRecord(MsgHisDO msgHisDO) {
        return msgHisManager.update(msgHisDO);
    }

}
